#include "hzpch.h"
#include "FrameBuffer.h"
#include "Hazel/platform/OpenGL/OpenGLFrameBuffer.h"
#include "Renderer.h"
namespace Hazel
{
Ref<FrameBuffer> FrameBuffer::Create(const FrameBufferSpecification &spec)
{
    switch (Renderer::GetAPI())
    {
    case RendererAPI::API::None:
        assert(false);
        return nullptr;
#ifdef HZ_PLATFORM_WINDOWS
    case RendererAPI::API::OpenGL:
        return CreateRef<OpenGLFramebuffer>(spec);
#endif
    }
    assert(false);
    return nullptr;
}
} // namespace Hazel